﻿using System;
using System.Linq;
using System.Collections.Generic;

namespace Caramel.Entities.Testing
{
	public class ByteArrayComparer : IEqualityComparer<byte[]>
	{
		public bool Equals(byte[] x, byte[] y)
		{
			if ((x == null) || (y == null))
			{
				return x == y;
			}

			return x.SequenceEqual(y);
		}

		public int GetHashCode(byte[] obj)
		{
			throw new NotImplementedException();
		}
	}
}
